{% extends 'ApiCloud/Base/layout.common.html.twig' %}

{% block main %}
    {% include "ApiCloud/Base/inc.head.light.html.twig" with {title:"送审站点管理",back:1} %}
    {% include "ApiCloud/Base/inc.file.base.html.twig" with {site:""} %}

    <div class="bc13">
        <mu-tabs :value.sync="tab" color="amber600" indicator-color="amber600" center inverse>
            <mu-tab>当前所属</mu-tab>
            <mu-tab>未分配</mu-tab>
        </mu-tabs>
    </div>

    <div class="fs10 pad5" v-if="tab == 1">
        <div class="bc13 c12 fs8 pad5 bdbda ofe mart5" v-for="item in wait">
            <div class="padl5 padr5 padb5 bcf c11 fs8">
                <div class=" pad3 fs10 flrc">
                    <div class="flex1">[[item.Site_name]]</div>
                    <div class="c12">
                        {#<span class="fa fa-angle-right"></span>#}
                        {#<i class="material-icons">launch</i>选择#}
                        <mu-button icon @click="goto('siteInfoSum',{id:item.Site_id})">
                            <mu-icon value="launch"></mu-icon>
                        </mu-button>
                    </div>
                </div>
                <div class="bc13 bdtso bdbso">
                    <div class="flrc pad5">
                        <div class="flrc flex1">
                            <div class="">所在区域：</div>
                            <div class="flex1">[[item.AreaCategory_name]]</div>
                        </div>
                        <div class="flrc flex1">
                            <div class="">中标单位：</div>
                            <div class="flex1">[[item.SiteCategory_name]]</div>
                        </div>
                    </div>
                    <div class="flrc pad5">
                        <div class="flrc flex1">
                            <div class="">负责人：</div>
                            <div class="flex1">[[item.Site_manager]]</div>
                        </div>
                    </div>
                </div>
                <div class="pad5">
                    <mu-button color="success" @click="joinSite(item.Site_id)" full-width>添加</mu-button>
                </div>
            </div>
            {#<div class="fs14 padb5">[[item.SiteUserWorkLog_name]]</div>#}
            {#<div class="flrc">#}
                {#<div class="flex-r flex1">#}
                    {#<div class="">签到：</div>#}
                    {#<div v-if="boole(item.SiteUserWorkLog_start_Time)">[[item.SiteUserWorkLog_start_Time]]</div>#}
                    {#<div v-if="!boole(item.SiteUserWorkLog_start_Time)">#}
                        {#<span class="c2 fa fa-warning"></span>#}
                    {#</div>#}
                {#</div>#}
                {#<div class="flex-r flex1">#}
                    {#<div class="">签退：</div>#}
                    {#<div v-if="boole(item.SiteUserWorkLog_end_Time)">[[item.SiteUserWorkLog_end_Time]]</div>#}
                    {#<div v-if="!boole(item.SiteUserWorkLog_end_Time)">#}
                        {#<span class="c3 fa fa-warning"></span>#}
                    {#</div>#}
                {#</div>#}
            {#</div>#}
            {#<div class="tar padt5 padb5">#}
                {#<mu-button color="warning" @click="delLog(item.SiteUserWorkLog_id)">删除记录</mu-button>#}
                {#<mu-button color="success" @click="joinSite(item.SiteUserWorkLog_id)">分配到当前项目</mu-button>#}
            {#</div>#}
        </div>
    </div>
    <div class="fs10 pad5" v-if="tab == 0">
        <div class="bc13 c12 fs8 pad5 bdbda ofe mart5" v-for="item in select">
            <div class="padl5 padr5 padb5 bcf c11 fs8">
                <div class=" pad3 fs10 flrc">
                    <div class="flex1">[[item.Site_name]]</div>
                    <div class="c12">
                        {#<span class="fa fa-angle-right"></span>#}
                        {#<i class="material-icons">launch</i>选择#}
                        <mu-button icon @click="goto('siteInfoSum',{id:item.Site_id})">
                            <mu-icon value="launch"></mu-icon>
                        </mu-button>
                    </div>
                </div>
                <div class="bc13 bdtso bdbso">
                    <div class="flrc pad5">
                        <div class="flrc flex1">
                            <div class="">所在区域：</div>
                            <div class="flex1">[[item.AreaCategory_name]]</div>
                        </div>
                        <div class="flrc flex1">
                            <div class="">中标单位：</div>
                            <div class="flex1">[[item.SiteCategory_name]]</div>
                        </div>
                    </div>
                    <div class="flrc pad5">
                        <div class="flrc flex1">
                            <div class="">负责人：</div>
                            <div class="flex1">[[item.Site_manager]]</div>
                        </div>
                    </div>
                </div>
                <div class="pad5">
                    <mu-button color="warning" @click="clearSite(item.Site_id)" full-width>移除</mu-button>
                </div>
            </div>
            {#<div class="fs14 padb5">[[item.SiteUserWorkLog_name]]</div>#}
            {#<div class="c11 fs10 ofe">工作任务：[[item.Site_name]]</div>#}
            {#<div class="flrc">#}
                {#<div class="flex-r flex1">#}
                    {#<div class="">签到：</div>#}
                    {#<div v-if="boole(item.SiteUserWorkLog_start_Time)">[[item.SiteUserWorkLog_start_Time]]</div>#}
                    {#<div v-if="!boole(item.SiteUserWorkLog_start_Time)">#}
                        {#<span class="c2 fa fa-warning"></span>#}
                    {#</div>#}
                {#</div>#}
                {#<div class="flex-r flex1">#}
                    {#<div class="">签退：</div>#}
                    {#<div v-if="boole(item.SiteUserWorkLog_end_Time)">[[item.SiteUserWorkLog_end_Time]]</div>#}
                    {#<div v-if="!boole(item.SiteUserWorkLog_end_Time)">#}
                        {#<span class="c3 fa fa-warning"></span>#}
                    {#</div>#}
                {#</div>#}
            {#</div>#}
            {#<div class="tar padt5 padb5"  v-if="!boole(item.SiteUserWorkLog_end_Time)">#}
                {#<mu-button color="warning" @click="delLog(item.SiteUserWorkLog_id)">删除记录</mu-button>#}
                {#<mu-button color="" @click="clearSite(item.SiteUserWorkLog_id)">改为未分配人员</mu-button>#}
            {#</div>#}
        </div>
    </div>
{% endblock %}
